import http from "@/utils/http2.js";
/**
 * 查询所有产品
 * @param {*} type
 * @returns
 */
export function queryAll() {
  return http.get("/v1/product/all");
}
/**
 * 分页查询
 * @param {*} data
 * @returns
 */
export function queryProduct(data) {
  return http.post("/v1/product/query", data);
}

/**
 * 询价单详情
 * @param {*} data
 * @returns
 */
export function detail(data) {
  return http.post("/v1/enquiry/detail", data);
}
//添加
export function addProduct(data) {
  return http.post("/v1/product", data);
}
export function addToCar(goods) {
  return http.post("/v1/car", goods);
}
//根据id查看产品详情
export function getById(data) {
  return http.get("/v1/product", data);
}
